<?php
namespace Home\Model;
use Think\Model;
class LoginModel extends Model{
	//protected $tableName = "sys_user";
	protected $_validate = array(
		array("user_name", "require", "用户名不能为空！"),
		array("user_name", "is_user_name", "用户名只能为字母或数字！", 0, "function"),
		array("user_name", "1,20", "用户名长度不能超过20个字节！", 0, "length"),
		
		//array("password", "require", "密码不能为空！"),
	);
}
?>